
		// <![CDATA[
		var $j = jQuery.noConflict();	
		$j(document).ready(function () {
			$j('ul').accordion();
		});
				
		// ]]>		
function submitform()
{
document.forms["login_frm"].submit();
alert("Value is sumitted");
}

//-------------------------------Self sliding small images---------------------->
//--------------------------------------AUTO SCROLLER JQUERY SCRIPTS------------------------------>
/*var $ = jQuery.noConflict();
$(document).ready(function() {	
	
	$(".scroll-content").jCarouselLite({
	hoverPause:true,
	vertical: true,
	visible: 2,
	auto:3000,
	speed:1000,
	btnNext: ".scroll-next",
	btnPrev: ".scroll-prev"
	});
	
});*/
//-------------------------------Self sliding small images---------------------->
//---------------------login---------------------------->

function showcontact(id)
{
document.getElementById('light').style.display='block';
document.getElementById('fade').style.display='block';
}

function validate_login()
{ 
var reg=new RegExp("^[A-Za-z0-9_]{1,}[.]?[A-Za-z0-9_]{1,}@{1}([A-Za-z0-9_]+[.]{1})+[A-Za-z0-9_]{1,}$");
var total_qty=0;
var total_val=0;
var total_price=0;

	 msg="<h3>Please check your input</h3>";
	      		     
	 if(document.getElementById('email').value=='')
	 {		  
		 msg+="Please enter your <b>Email</b><br>";		  
	 }
	   
     if(document.getElementById('email').value!='') 
	 {
	   if(!reg.test(document.getElementById('email').value))
       {		
		 msg+="Please enter valid <b>Email Address</b><br>"; 
       }
	 }
	
	 if(document.getElementById('pass').value=='')
	 {		  
	   msg+="Please enter your <b>Password</b><br>";		  
	 }   
	     
			
	if(msg=="<h3>Please check your input</h3>")
	{
	  // return true;
	  pic1 = new Image(16, 16); 
	  pic1.src = "loader.gif";
	  var usr = $("#email").val();
	  var pass= $("#pass").val();
	  var isSuccess = false;

		if(usr.length >= 3)
		{
		  $("#status").html('<img src="images/loader.gif" align="absmiddle">&nbsp;Checking login...');
		    $.ajax({  
				type: "POST",  
				url: "login.php",  
				data: "username="+usr+"&pass="+pass, 
				async: false,
				success: function(mesg){	 
			   
			    $("#status").ajaxComplete(function(event, request, settings){ 						
			
				if(mesg == 'OK')
				{ 	$("#email").removeClass('object_error'); // if necessary
					$("#email").addClass("object_ok");
					isSuccess = true;
					// return true;
					//$(this).html('&nbsp;<img src="images/accepted.png" align="absmiddle"> <font color="Green"> Available </font>  ');
					//alert(msg);
					//$(this).html(mesg);
				}  
				else  
				{  
					$("#email").removeClass('object_ok'); // if necessary
					$("#email").addClass("object_error");
					$(this).html(mesg);
				}			   
		     });		    			 
		   }
	     });	   
	  }
	  
	  return isSuccess;
	  
	}else{		
	 var msg1='<div class="MessageError MarginBottom-5px">'+msg+'<br></div>';
		//alert(msg1);
		//document.getElementById('lblFormMessage').style.display='block';
	  $("#lblFormMessage").html(msg1);	
	  return false;	
	}	
 }